//
//  YZMCaluateViewCell.m
//  YZMicroStock
//
//  Created by apple on 2017/12/4.
//  Copyright © 2017年 cqjr. All rights reserved.
//

#import "YZMCaluateViewCell.h"

@interface YZMCaluateViewCell ()

@property (weak, nonatomic) IBOutlet UILabel *labelOne;

@property (weak, nonatomic) IBOutlet UILabel *labelTwo;

@property (weak, nonatomic) IBOutlet UILabel *labelThree;

@property (weak, nonatomic) IBOutlet UILabel *labelFirth;

@end

@implementation YZMCaluateViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.labelOne.textColor = [YZMAppStyle colorForGrayText];
    self.labelTwo.textColor = [YZMAppStyle colorForGrayText];
    self.labelThree.textColor = [YZMAppStyle colorForGrayText];
    self.labelFirth.textColor = [YZMAppStyle colorForGrayText];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    if (ScreenWidth == 320) {
        self.labelOne.font = [UIFont systemFontOfSize:11];
        self.labelTwo.font = [UIFont systemFontOfSize:11];
        self.labelThree.font = [UIFont systemFontOfSize:11];
        self.labelFirth.font = [UIFont systemFontOfSize:11];
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setDic:(NSDictionary *)dic{
    self.labelOne.text = dic[@"tradeDay"];
    self.labelTwo.text = dic[@"T+1"];
    self.labelThree.text = dic[@"T+D"];
    self.labelFirth.text = dic[@"discount"];
}

@end
